package javax.microedition.lcdui;

import java.util.Hashtable;

public abstract class Displayable {
  public Hashtable Commands = new Hashtable();
  public String Title;

  public native void ShowTitle();
  public native int GetHeight();
  public native int GetWidth();
  public int Height=320;
  public int Width=240;
  public Ticker Ticker;

  protected void sizeChanged(int paramInt1, int paramInt2) {
    Width=paramInt1;
    Height=paramInt2;
  }

  public boolean isShown() {
    return false;
  }

  public int getHeight() {
    return Height;
  }

  public int getWidth() {
    return Width;
  }

  public String getTitle() {
    return Title;
  }

  public Ticker getTicker() {
    return Ticker;
  }

  public native void AddCommand(Command paramCommand);

  public void addCommand(Command paramCommand) {
    if (Commands.get(paramCommand.label) == null) {
      Commands.put(paramCommand.label, paramCommand);
      AddCommand(paramCommand);
    }
  }

  public native void RemoveCommand(Command paramCommand);

  public native void SetDisplayableId();

  public void removeCommand(Command paramCommand) {
    RemoveCommand(paramCommand);
    Commands.remove(paramCommand);
  }

  public native void SetCommandListener(CommandListener paramCommandListener);

  public CommandListener commandListener;

  public void setCommandListener(CommandListener paramCommandListener) {
    commandListener = paramCommandListener;
    SetCommandListener(paramCommandListener);
  }

  public void setTicker(Ticker paramTicker) {
    Ticker=paramTicker;
  }

  public void setTitle(String paramString) {
    Title = paramString;
  }
}

/*
 * Location:
 * C:\Java\rt\javax\microedition\midp_2.1.jar!\javax\microedition\lcdui\
 * Displayable.class
 * Java compiler version: 3 (47.0)
 * JD-Core Version: 1.1.3
 */